﻿
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace OAuth.Server.Domain.Entities
{
    /// <summary> 第三方帐号 </summary>
    [Table("AccountPlatform")]
    public class TAccountPlatform 
    {
        public Guid AccountId { get; set; }
        public byte Type { get; set; }
        public byte State { get; set; }
        public string OpenId { get; set; }
        public string UnionId { get; set; }
        public string Nick { get; set; }
        public string Avatar { get; set; }
        public string AccessToken { get; set; }
        public string RefreshToken { get; set; }
        public DateTime? LoginTime { get; set; }
        public DateTime CreateTime { get; set; }
        public DateTime? ExpiredTime { get; set; }
    }
}
